package com.snopy.service.center;

import com.snopy.common.PagedGridResult;
import com.snopy.pojo.Orders;
import com.snopy.pojo.vo.OrderStatusCountsVO;


/**
 * @author snopy
 * @version 1.0.0
 * @classname MyOrdersService
 * @description
 * @email 77912204@qq.com
 * @date 2020/10/13 7:03
 */
public interface MyOrdersService {

    /**
     * 查询用户订单数
     * @param userId
     * @return
     */
    public OrderStatusCountsVO getOrderStatusCounts(String userId);

    /**
     * 查询我的订单列表
     * @param userId
     * @param orderStatus
     * @param page
     * @param pageSize
     * @return
     */
    public PagedGridResult queryMyOrders(String userId, Integer orderStatus, Integer page, Integer pageSize);
    /**
     * 查询我的订单
     *
     * @param userId
     * @param orderId
     * @return
     */
    public Orders queryMyOrder(String userId, String orderId);
    /**
     * @Description: 订单状态 --> 商家发货
     */
    public void updateDeliverOrderStatus(String orderId);
    public boolean updateReceiveOrderStatus(String orderId);
    /**
     * 删除订单（逻辑删除）
     * @param userId
     * @param orderId
     * @return
     */
    public boolean deleteOrder(String userId, String orderId);

    /**
     * 获得分页的订单动向
     * @param userId
     * @param page
     * @param pageSize
     * @return
     */
    public PagedGridResult getOrdersTrend(String userId,
                                          Integer page,
                                          Integer pageSize);

}
